package com.dayatang.hrm.compensation.domain;

import java.util.Date;

import com.dayatang.commons.domain.EntityRepository;
import com.dayatang.hrm.organisation.domain.Organization;

public interface SalaryAccountSuiteSettingRepository extends
		EntityRepository<SalaryAccountSuiteSetting, Long> {

	SalaryAccountSuiteSetting get(SalaryAccountSuite accountSuite,
			Date queryDate);

	boolean isNameAlreadyUsedInSameOrganizationExceptSelf(String name,
			Organization org, Date fromDate, Date toDate,
			SalaryAccountSuiteSetting selfSetting);

	SalaryAccountSuiteSetting getPure(
			SalaryAccountSuiteSetting salaryAccountSuiteSetting);

}
